package com.wzx.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wzx.user.pojo.shop.pojo.ReleaseDynamic;
import com.wzx.user.dto.NotesDto;
import com.wzx.user.pojo.Notes;
import com.wzx.user.vo.RedPkgVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wzx
 * @version 1.0
 * @date 2023/3/1 - 22:51
 * @description 标题
 */
@Mapper
public interface NotesMapper extends BaseMapper<Notes> {
    Integer selectSumPrice(@Param("userId") Integer userId,
                           @Param("queryType") String queryType,
                           @Param("year") String year,
                           @Param("month") String month);

    Page<NotesDto> queryById(Page<NotesDto> page,
                             @Param("userId") Integer userId,
                             @Param("year") String year,
                             @Param("month") String month);

    Double querySunPrice(RedPkgVo redPkgVo);

    Page<NotesDto> queryByTypePage(@Param("userId") Integer userId,
                                         @Param("queryType") String queryType,
                                         @Param("year") String year,
                                         Page<Notes> page);

    Integer queryTodayPrice(Integer userId);

    Integer queryTodaySum(Integer userId);
}
